import request from '@/utils/request'

// 查询调拨单列表
export function listBill(query) {
  return request({
    url: '/inv/invTrans/list',
    method: 'get',
    params: query
  })
}

// 查询调拨单详细
export function getBill(data) {
  return request({
    url: '/inv/invTrans/getInfo',
    method: 'post',
    data: data
  })
}

// 新增调拨单
export function addBill(data) {
  return request({
    url: '/inv/invTrans/add',
    method: 'post',
    data: data
  })
}

// 修改调拨单
export function updateBill(data) {
  return request({
    url: '/inv/invTrans/edit',
    method: 'post',
    data: data
  })
}

// 删除调拨单
export function delBill(id) {
  return request({
    url: '/inv/invTrans/' + id,
    method: 'delete'
  })
}

export function getWhlist() {
  return request({
    url: '/inv/invTrans/getWhlist',
    method: 'post'
  })
}



// 查询调拨单详细
export function excuteDB(data) {
  return request({
    url: '/inv/invTrans/excuteDB',
    method: 'post',
    data: data
  })
}
